﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Himp.Erp
{
    public class InboundRecCreateOrUpdateDto
    {
        /// <summary>
        /// 库存变更类别编码
        /// </summary>
        public string InvChgTypeCode { get; set; }

        /// <summary>
        /// 库存变更类别名称
        /// </summary>
        public string InvChgTypeName { get; set; }

        /// <summary>
        /// 所属仓储Id
        /// </summary>
        public Guid MatlWhseId { get; set; }

        /// <summary>
        /// 物料供应商
        /// </summary>
        public Guid MatlSplerId { get; set; }

        /// <summary>
        /// 发票号
        /// </summary>
        public string? Invono { get; set; }

        /// <summary>
        /// 随货单号
        /// </summary>
        public string? DyntNo { get; set; }

        /// <summary>
        /// 采购金额
        /// </summary>
        [Column(TypeName = "decimal(18,4)")]
        public decimal? PurcAmt { get; set; }

        /// <summary>
        /// 折扣率
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? DiscRate { get; set; }

        /// <summary>
        /// 入库金额
        /// </summary>
        [Column(TypeName = "decimal(18,4)")]
        public decimal? InboundAmt { get; set; }

        /// <summary>
        /// 开票时间
        /// </summary>
        public DateTime? InvoicingTime { get; set; }

        /// <summary>
        /// 买入时间
        /// </summary>
        public DateTime? PurchaseTime { get; set; }

        /// <summary>
        /// 入库时间
        /// </summary>
        public DateTime? InboundTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Exp { get; set; }
    }
}
